package com.app.qbake.module.square.activity;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;

import com.wind.base.BaseActivity;
import com.wind.base.utils.Navigator;
import com.wind.data.mine.bean.Address;
import com.app.qbake.R;
import com.app.qbake.module.square.SelectAddressFragment;

public class SelectAddressActivity extends BaseActivity {

    public static void start(Context context, Address address){
        Navigator.navigate(context,SelectAddressActivity.class,address);
    }


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.fragment_container_with_toolbar);
        Address address=Navigator.getSerializableExtra(this);
        replaceFragment(SelectAddressFragment.getInstance(address));
    }

    @Override
    protected void setTitle() {
        mTitleBar.setTitle("收货地址");
    }






}
